﻿@{
    ViewBag.Title = "首页";
    Layout = "~/Views/Shared/_UiLayout.cshtml";
}
@section styles{
    <link rel="stylesheet" href="ui/css/page-index.css" asp-append-version="true">
}

@section scripts{
    <script src="ui/js/page-index.js" asp-append-version="true"></script>
}
<!-- 头文件 -->
<div class="section-banner">
    <div class="swiper-container swiper-container-01">
        <div class="swiper-wrapper">

            @if (ViewBag.BannerList != null)
            {
                foreach (var item in ViewBag.BannerList)
                {
                    <div class="swiper-slide" style=" background-image: url(@item.UrlPath); background-position: center center;background-repeat: no-repeat;">
                        <a href="javascript:;">
                            <dl>
                                <dt class="slide-image"></dt>
                            </dl>
                        </a>
                    </div>
                }
            }
        </div>
        <div class="pagination"></div>
    </div>
</div>

<!-- 幻灯+新闻 -->
<div class="section-news">
    <div class="wrapper">
        <div class="wrapper-inner clearfix">
            <div class="col-sub fl">
                <div class="swiper-container swiper-container-03">
                    <a class="arrow-left" href="#"></a>
                    <a class="arrow-right" href="#"></a>
                    <div class="swiper-wrapper">
                        @if (ViewBag.RecomContent != null)
                        {
                            foreach (var item in ViewBag.RecomContent)
                            {
                                <div class="swiper-slide">
                                    <a class="slide-link" href="/ContentUI?id=@item.Id">
                                        <dl class="slide-item">
                                            <dt class="slide-pic">
                                                <img src="@item.CoverUrl">
                                            </dt>
                                            <dd class="div-opa"></dd>
                                            <dd class="slide-text">
                                                @item.Title
                                            </dd>
                                        </dl>
                                    </a>
                                </div>
                            }
                        }

                    </div>
                    <div class="pagination"></div>
                </div>
            </div>
            <div class="col-main fr">
                <a class="more-link-plus text-link-more" href="#" target="_blank">
                    更多
                </a>
                <ul class="text-news">
                    @if (ViewBag.TopContent != null)
                    {
                        foreach (var item in ViewBag.TopContent)
                        {
                            <li class="text-news-item">
                                <a href="/ContentUI?id=@item.Id" target="_blank">
                                    <span class="text-news-detail">
                                        @item.Title
                                    </span>
                                    <span class="text-news-date">
                                        @item.AddTime
                                    </span>
                                </a>
                            </li>
                        }
                    }
                </ul>
            </div>
        </div>
    </div>
</div>

<!-- 专题专栏 -->
<div class="section-special">
    <div class="wrapper">
        <div class="flexbox">
            <div class="msection">
                <div class="mtitle"><a href="#"> 招标平台</a></div>
            </div>
            <div class="msection"><div class="mtitle"><a href="#"> 招标平台</a></div> </div>
            <div class="msection"><div class="mtitle"><a href="#"> 招标平台</a></div></div>
        </div>
    </div>
</div>

<!-- 三栏布局 -->
<div class="section-cols">
    <div class="wrapper" style="background:#fff;">
        <div class="cols-wrappper clearfix">
            <div class="col-wrapper fl">
                <div class="section-title">
                    <h2 class="section-title-main">
                        公司新闻
                    </h2>
                    <h3 class="section-title-sub"></h3>
                </div>
                <a class="more-link-plus text-link-more" href="#" target="_blank">更多</a>

                <div class="mask-news-container">
                    @if (ViewBag.NewContentList != null)
                    {
                        foreach (var item in ViewBag.NewContentList)
                        {
                            <a class="mask-news-link" href="/ContentUI?id=@item.Id">
                                <dl class="mask-news-item">
                                    <dt class="mask-news-img">
                                        @if (string.IsNullOrEmpty(item.CoverUrl))
                                        {
                                            <img src="ui/image/new.png">
                                        }
                                        else
                                        {
                                            <img src="@item.CoverUrl">
                                        }

                                    </dt>
                                    <dd class="mask-news-opa"></dd>
                                    <dd class="mask-news-text">
                                        @item.Title
                                    </dd>
                                </dl>
                            </a>

                            break;
                        }
                    }

                </div>

                <ul class="text-news with-dot">
                    @if (ViewBag.NewContentList != null)
                    {
                        foreach (var item in ViewBag.NewContentList)
                        {
                            <li class="text-news-item">
                                <a href="/ContentUI?id=@item.Id" target="_blank">
                                    <span class="text-news-date">
                                        @item.AddTime
                                    </span>
                                    <span class="text-news-detail">
                                        @item.Title
                                    </span>
                                </a>
                            </li>
                        }
                    }

                </ul>
            </div>
            <div class="col-wrapper fl">
                <div class="section-title">
                    <h2 class="section-title-main">
                        公司新闻
                    </h2>
                    <h3 class="section-title-sub"></h3>
                </div>
                <a class="more-link-plus text-link-more" href="#" target="_blank">更多</a>

                <div class="mask-news-container">
                    @if (ViewBag.NewContentList != null)
                    {
                        foreach (var item in ViewBag.NewContentList)
                        {
                            <a class="mask-news-link" href="/ContentUI?id=@item.Id">
                                <dl class="mask-news-item">
                                    <dt class="mask-news-img">
                                        @if (string.IsNullOrEmpty(item.CoverUrl))
                                        {
                                            <img src="ui/image/new.png">
                                        }
                                        else
                                        {
                                            <img src="@item.CoverUrl">
                                        }

                                    </dt>
                                    <dd class="mask-news-opa"></dd>
                                    <dd class="mask-news-text">
                                        @item.Title
                                    </dd>
                                </dl>
                            </a>

                            break;
                        }
                    }

                </div>


                <ul class="text-news with-dot">
                    @if (ViewBag.NewContentList != null)
                    {
                        foreach (var item in ViewBag.NewContentList)
                        {
                            <li class="text-news-item">
                                <a href="/ContentUI?id=@item.Id" target="_blank">
                                    <span class="text-news-date">
                                        @item.AddTime
                                    </span>
                                    <span class="text-news-detail">
                                        @item.Title
                                    </span>
                                </a>
                            </li>
                        }
                    }

                </ul>
            </div>
            <div class="col-wrapper fl">
                <div class="section-title">
                    <h2 class="section-title-main">
                        公司新闻
                    </h2>
                    <h3 class="section-title-sub"></h3>
                </div>
                <a class="more-link-plus text-link-more" href="#" target="_blank">更多</a>

                <div class="mask-news-container">
                    @if (ViewBag.NewContentList != null)
                    {
                        foreach (var item in ViewBag.NewContentList)
                        {
                            <a class="mask-news-link" href="/ContentUI?id=@item.Id">
                                <dl class="mask-news-item">
                                    <dt class="mask-news-img">
                                        @if (string.IsNullOrEmpty(item.CoverUrl))
                                        {
                                            <img src="ui/image/new.png">
                                        }
                                        else
                                        {
                                            <img src="@item.CoverUrl">
                                        }

                                    </dt>
                                    <dd class="mask-news-opa"></dd>
                                    <dd class="mask-news-text">
                                        @item.Title
                                    </dd>
                                </dl>
                            </a>
                            break;
                        }
                    }

                </div>


                <ul class="text-news with-dot">
                    @if (ViewBag.NewContentList != null)
                    {
                        foreach (var item in ViewBag.NewContentList)
                        {
                            <li class="text-news-item">
                                <a href="/ContentUI?id=@item.Id" target="_blank">
                                    <span class="text-news-date">
                                        @item.AddTime
                                    </span>
                                    <span class="text-news-detail">
                                        @item.Title
                                    </span>
                                </a>
                            </li>
                        }
                    }

                </ul>
            </div>
        </div>
    </div>
</div>

<!-- 关于我们 -->
<div class="section-about">
    <div class="wrapper clearfix">
        <img class="company-pic fl" src="/ui/image/2b28aeab88de5feb.png">
        <div class="col-main fr">
            <div class="section-title">
                <h2 class="section-title-main">关于我们</h2>
                <h3 class="section-title-sub">About us</h3>
            </div>
            <p class="company-text">
                @Html.Raw(ViewBag.SummaryLxwm)
            </p>
            <a href="/Custom/Contactus?id=@ViewBag.ChannelLxwm" class="more-link-arrow"></a>
        </div>
    </div>
</div>

